//---------------------------------------------------------------------
// <copyright file="CsdlSemanticsTypeDefinition.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------

using Microsoft.Data.Edm.Csdl.Internal.Parsing.Ast;

namespace Microsoft.Data.Edm.Csdl.Internal.CsdlSemantics
{
    /// <summary>
    /// Common base class for the semantics of EDM types.
    /// </summary>
    internal abstract class CsdlSemanticsTypeDefinition : CsdlSemanticsElement, IEdmType
    {
        protected CsdlSemanticsTypeDefinition(CsdlElement element)
            : base(element)
        {
        }

        public abstract EdmTypeKind TypeKind { get; }

        public EdmSchemaElementKind SchemaElementKind
        {
            get { return EdmSchemaElementKind.TypeDefinition; }
        }

        public override string ToString()
        {
            return this.ToTraceString();
        }
    }
}
